#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // this project config.h
       
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>

#include "common.h"
#include "util.h"
#include "mixer.h"

// TODO: fullfill this macro
#define VOLUME_APP_SOURCE_NAMES 


typedef struct MixerSource {
	const char *name; // name of source 
	int dev; // source device number
	int pre_dev_volume2; // last known left/right volume
	
	float volume; // volume, in [0, 1]
	float balance; // balance, in [-1, 1]
	
	bool is_stereo;
	bool is_muted;
} MixerSorce;


